﻿using System;
using System.Web.UI.WebControls;
using System.Web.UI;
using BLL;
using Model;

public partial class ProductManage_RFProductManage_Manage_ProductType_Step_FlowView : System.Web.UI.Page
{
    public ProductType_Step_Flow pf;

    public ProductManage_RFProductManage_Manage_ProductType_Step_FlowView()
    {
        pf = new ProductType_Step_Flow();
    }

    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            BindProductTypeStepFlow();
        }
    }

    public void BindProductTypeStepFlow()
    {
        this.GridView1.DataSource = pf.LoadEntities();
        this.GridView1.DataBind();
    }

    protected void GridView1_PageIndexChanging(object sender, GridViewPageEventArgs e)
    {
        this.GridView1.PageIndex = e.NewPageIndex;
        BindProductTypeStepFlow();
    }
}
